package cn.edu.zzuli.nothinglink.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author suzyyy
 * @since 2021-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ProblemDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pd_id", type = IdType.AUTO)
    private Integer pdId;

    /**
     * 回答人的学生id
     */
    @TableField("pd_stu_id")
    private Integer pdStuId;

    /**
     * 回答人的姓名，方便数据回显
     */
    private String pdStuName;


    /**
     * 回答属于哪条问题id
     */
    private Integer problem_id;

    /**
     * 回答的信息
     */
    private String pdReply;


    /**
     * 回答的时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime pdReplyTime;

    @TableField(exist = false)
    private String className;
    @TableField(exist = false)
    private String stuNumber;


}
